package com.koron.order.linedefect.defectDemotion.mapper;

import com.koron.order.linedefect.defectDemotion.bean.po.DefectDemotionPo;
import com.koron.order.linedefect.defectDemotion.bean.query.DefectDemotionQuery;
import com.koron.order.linedefect.defectDemotion.bean.vo.DefectDemotionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 缺陷工单下缺陷降级信息从表(DefectDemotion)表数据库访问层
 *
 * @author zhouj
 * @since 2022-02-09 10:36:49
 */
public interface DefectDemotionMapper {

    int insertOrUpdate(DefectDemotionPo defectDemotion);

    int insertOrUpdateBatch(@Param("list") List<DefectDemotionPo> defectDemotionList);

    int insert(DefectDemotionPo defectDemotion);

    int insertBatch(@Param("list") List<DefectDemotionPo> defectDemotionList);

    int update(DefectDemotionPo defectDemotion);

    int deleteById(String id);

    DefectDemotionPo queryById(String id);

    List<DefectDemotionPo> queryList(DefectDemotionPo defectDemotion);

    List<DefectDemotionVo> queryVoList(DefectDemotionQuery demotionQuery);
}